
import random
var_1 = 15 # type: int
var_2 = random.randint(1, 10)

var_3: int = 66

def add_int(x:int , y:int) -> int:
    return x+y

add_int(1,2)

var_5:int = "123" # 就是个注释，不会报错，不是类型转换
print(var_5)

from typing import Union

my_list: list[Union[int, str]] = [1, 2, "aaa", "bbb"]

def my_add(x:Union[int, float], y:Union[int, float]) -> Union[int, float]:
    return x+y